package com.prj.ufdm.demo.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

import com.prj.ufdm.demo.tutorial.socket.TestSocketServer;

/**
 * 启动接收数据平台通知接收接口
 * @author Administrator
 */
//@Component
public class StartupExecute implements CommandLineRunner {

	@Autowired
	private TestSocketServer testSocketServer;
	@Override
	public void run(String... args) throws Exception {
		new Thread(new Runnable() {
			@Override
			public void run() {
				testSocketServer.startSocketServer();
			}
		}).start();
		
	}

}
